package com.miracle.main.module.di.module;

import com.miracle.basemvp.di.scope.ActivityScope;
import com.miracle.basemvp.di.scope.FragmentScope;
import com.miracle.main.module.mvp.contract.FileContract;
import com.miracle.main.module.mvp.model.FileModel;

import dagger.Module;
import dagger.Provides;

/**
 * com.miracle.main.module.di.module
 * (c)2018 AIR Times Inc. All rights reserved.
 *
 *
 * @author WangJQ
 * @version 1.0
 * @date 2018/7/10 15:21
 * @see com.miracle.main.module.di.module
 */
@ActivityScope
@Module
public class FileModule {
    private FileContract.View mView;

    public FileModule(FileContract.View view) {
        mView = view;
    }

    @ActivityScope
    @Provides
    FileContract.View provideFileView() {
        return mView;
    }

    @ActivityScope
    @Provides
    FileContract.Model provideFileModel(FileModel model) {
        return model;
    }
}
